package com.hongxun.design.listeners;

import android.widget.CompoundButton;

/**
 * Created by zerdoor_pc on 2016/5/23.
 */
public  abstract class MyCheckedChangeListener implements CompoundButton.OnCheckedChangeListener {
    int position;
    public MyCheckedChangeListener(int position) {
        this.position=position;
    }

    @Override
    public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
        onCheckedChanged(compoundButton,b,position);
    }

    public abstract void onCheckedChanged(CompoundButton compoundButton, boolean isChecked,int  position);
}